package org.csu.mypetstore.api.common;


import lombok.Getter;

//枚举，便于维护
@Getter
public enum ResponseCode {
    SUCCESS(0,"success"),
    ERROR(1,"ERROR"),
    NEED_LOGIN(2,"NEED_LOGININ"),
    ILLEGAL_ARGUMENT(3,"ILLEGAL_ARGUMENT");

    @Getter
    private final  int code;
    private final  String description;
    ResponseCode( int code, String description) {
        this.code=code;
        this.description=description;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
